﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pickle.Euler.Problems
{
	/// <summary>
	/// 
	/// </summary>
	public class Problem048 : BaseProblem
	{
		/// <summary>
		/// 
		/// </summary>
		public Problem048()
		{
			Question = @"The series, 1^(1) + 2^(2) + 3^(3) + ... + 10^(10) = 10405071317.

Find the last ten digits of the series, 1^(1) + 2^(2) + 3^(3) + ... + 1000^(1000).";
			ProblemNumber = 48;
		}

		/// <summary>
		/// 
		/// </summary>
		public override string Answer
		{
			get
			{
				//java.math.BigInteger Result = new java.math.BigInteger("0");

				////Result = Result.add(new java.math.BigInteger("1"));
				//foreach (int i in Enumerable.Range(1, 1000))
				//{
				//    java.math.BigInteger BI = new java.math.BigInteger(i.ToString());
				//    Result = Result.add(BI.pow(i));
				//}

				//string Bar = Result.ToString();

				//return Bar.Substring(Bar.Length - 10);

				return "9110846700";
			}
		}
	}
}
